﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Keepo.Models
{
    public class DesignableProduct
    {
        public DesignableProduct() { }

        public int DesignableProductId { get; set; }

        [Required(ErrorMessage = "יש להזין כותרת")]
        public string Title { get; set; }

        public int ViewProductId { get; set; }
        public virtual ViewProduct ViewProduct { get; set; }

        // Defines the mapping between the product's image and
        // the Designable area.
        public virtual ICollection<DesignPage> DesignPages { get; set; }

        // Size of printable area
        // TPA WPA BPA
        public virtual ICollection<PrinterPage> PrinterPages { get; set; }
    }
}